gtk4.git
5 years agonotbook: Fix a bug in focus handling
Matthias Clasen [Wed, 8 Apr 2020 11:48:35 +0000 (07:48 -0400)]
notbook: Fix a bug in focus handling

After the header widget was introduced, focus would get
stuck in a loop between actions and tabs.

This could be seen in the notebook on page 3 of
widget-factory.

5 years agocoloreditor: Draw a focus around the color plane
Matthias Clasen [Thu, 9 Apr 2020 18:11:18 +0000 (14:11 -0400)]
coloreditor: Draw a focus around the color plane

Not doing it was just an oversight.

5 years agocolorplane: Set a css name
Matthias Clasen [Thu, 9 Apr 2020 18:10:23 +0000 (14:10 -0400)]
colorplane: Set a css name

Every widget should have one.

5 years agoMerge branch 'wip/xdg-popup-move' into 'master'
Matthias Clasen [Wed, 8 Apr 2020 23:59:02 +0000 (23:59 +0000)]
Merge branch 'wip/xdg-popup-move' into 'master'

Wayland popup moving

See merge request GNOME/gtk!1017

5 years agowayland: Move transient-for field to GdkWaylandToplevel
Jonas Ådahl [Tue, 17 Mar 2020 14:30:25 +0000 (15:30 +0100)]
wayland: Move transient-for field to GdkWaylandToplevel

A toplevel will only ever be transient-for to another toplevel, and only
a toplevel will ever be transient-for, so move the field into the
GdkWaylandToplevel, and make it a pointer to another GdkWaylandToplevel.

5 years agowayland: Add surface to toplevel list only if toplevel
Jonas Ådahl [Tue, 17 Mar 2020 14:28:14 +0000 (15:28 +0100)]
wayland: Add surface to toplevel list only if toplevel

It was using another check (has parent) to do this, but now we have a
much more obvious way of creating surfaces, so we can use the type
directly.

5 years agowayland: Remove own pointer to the popup parent
Jonas Ådahl [Tue, 17 Mar 2020 14:26:58 +0000 (15:26 +0100)]
wayland: Remove own pointer to the popup parent

It's there already as the GdkSurface::parent, no need to duplicate.

5 years agowayland: Move toplevel/popup/drag surface definitions higher up
Jonas Ådahl [Tue, 17 Mar 2020 14:23:57 +0000 (15:23 +0100)]
wayland: Move toplevel/popup/drag surface definitions higher up

We them up there, so that code higher up compared to where they are
defined now can make use of them. Also add a few macros for type
checking and casting.

5 years agowayland: Move popups with xdg_popup.reposition
Jonas Ådahl [Sun, 16 Feb 2020 19:09:42 +0000 (20:09 +0100)]
wayland: Move popups with xdg_popup.reposition

The third version of xdg-shell introduces support for explicit popup
repositioning. If available, make use of this to implement popup
repositioning.

Note that this does *NOT* include atomic parent-child state
synchronization. For that,
https://gitlab.freedesktop.org/wayland/wayland-protocols/issues/13 will
be needed.

This currently uses my own fork of wayland-protocols which adds meson
support, so that we can use it as a subproject. Eventually when
wayland-protocols' meson support lands upstream, we should change it to
point there.

Silence some meson warnings while at it to make CI happy.

This also bumps the glib requirement, since g_warning_once() is used.

5 years agobuild: Change wrap revisions to use master instead of origin/master
Jonas Ådahl [Wed, 8 Apr 2020 20:43:29 +0000 (22:43 +0200)]
build: Change wrap revisions to use master instead of origin/master

Using origin/master crashes meson.

5 years agoMerge branch 'Gtk4_blue_focus_rings' into 'master'
Jakub Steiner [Wed, 8 Apr 2020 21:12:57 +0000 (21:12 +0000)]
Merge branch 'Gtk4_blue_focus_rings' into 'master'

Blue outlines / focus rings

See merge request GNOME/gtk!1629

5 years agoBlue outlines / focus rings
Frederik F [Wed, 8 Apr 2020 21:12:57 +0000 (21:12 +0000)]
Blue outlines / focus rings

- introduce two new colors: $focus_border_color for focused / outlined elements and $_coloured_focus_border_color for focused / outlined elements with a colored background color, like suggested/destructive buttons or selected elements
- set outline / focus color, offset and style accordingly for all widgets
- adapt entry focus color

5 years agoMerge branch 'render-node-types' into 'master'
Matthias Clasen [Wed, 8 Apr 2020 20:55:14 +0000 (20:55 +0000)]
Merge branch 'render-node-types' into 'master'

Turn GskRenderNode into a fundamental type

See merge request GNOME/gtk!1649

5 years agoProperly annotate the render node constructors
Emmanuele Bassi [Wed, 8 Apr 2020 15:17:08 +0000 (16:17 +0100)]
Properly annotate the render node constructors

Now that the GskRenderNode subclasses are recognised as proper
sub-types, we can annotate the constructors with their type. The C API
remains the same.

5 years agoAdd get_type() functions for GskRenderNode subclasses
Emmanuele Bassi [Wed, 8 Apr 2020 14:34:11 +0000 (15:34 +0100)]
Add get_type() functions for GskRenderNode subclasses

The introspection scanner tries to match a type name with a get_type()
function, in order to correctly identify a type as a class.

If the function is not available, we have two choices:

 - add some special case inside the introspection scanner, similar to
   how GParamSpec subclasses are handled in GObject
 - add a simple get_type() function

The latter is the simplest approach, and we don't need to change that
much, since we still register all render nodes at once.

5 years agoDo not install GSK headers for missing backends
Emmanuele Bassi [Wed, 8 Apr 2020 14:30:46 +0000 (15:30 +0100)]
Do not install GSK headers for missing backends

Broadway and Vulkan renderers are optional; if GTK hasn't been built
with their GSK renderers, we should not install their headers.

5 years agoImprove the gtktypefuncs.inc generator
Emmanuele Bassi [Wed, 8 Apr 2020 14:26:14 +0000 (15:26 +0100)]
Improve the gtktypefuncs.inc generator

Remove the plug/socket exception, and add exceptions for non-X11
windowing systems.

Additionally, speed up the file generation by avoiding string
concatenation in Python.

5 years agoAdd missing transfer annotation
Emmanuele Bassi [Tue, 7 Apr 2020 23:00:26 +0000 (00:00 +0100)]
Add missing transfer annotation

5 years agoTurn GskRenderNode into a derivable type
Emmanuele Bassi [Tue, 7 Apr 2020 22:33:54 +0000 (23:33 +0100)]
Turn GskRenderNode into a derivable type

Language bindings—especially ones based on introspection—cannot deal
with custom type hiearchies. Luckily for us, GType has a derivable type
with low overhead: GTypeInstance.

By turning GskRenderNode into a GTypeInstance, and creating derived
types for each class of node, we can provide an introspectable API to
our non-C API consumers, with no functional change to the C API itself.

5 years agoAdd macro for exported variables
Emmanuele Bassi [Tue, 7 Apr 2020 22:32:22 +0000 (23:32 +0100)]
Add macro for exported variables

The logic is based on the similar macro in GLib, but with the
appropriate GDK symbols.

5 years agoMerge branch 'ci-meson-bump' into 'master'
Emmanuele Bassi [Wed, 8 Apr 2020 12:17:50 +0000 (12:17 +0000)]
Merge branch 'ci-meson-bump' into 'master'

ci: Update the version of Meson in our Docker image

See merge request GNOME/gtk!1651

5 years agoci: Update the version of Meson in our Docker image
Emmanuele Bassi [Wed, 8 Apr 2020 11:26:58 +0000 (12:26 +0100)]
ci: Update the version of Meson in our Docker image

Needed for !1017.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Tue, 7 Apr 2020 20:30:43 +0000 (20:30 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Remove an unused backend includes

See merge request GNOME/gtk!1648

5 years agoMerge branch 'imcontextsimple-drop-ifdefs' into 'master'
Matthias Clasen [Tue, 7 Apr 2020 19:27:51 +0000 (19:27 +0000)]
Merge branch 'imcontextsimple-drop-ifdefs' into 'master'

impcontextsimple: Drop ifdef'ed platform dependencies

See merge request GNOME/gtk!1647

5 years agoRemove an unused backend includes
Matthias Clasen [Tue, 7 Apr 2020 19:01:33 +0000 (15:01 -0400)]
Remove an unused backend includes

These includes are just leftovers.

Every time where we do an #ifdef GDK_WINDOWING... in gtk/,
something went wrong. Don't do it needlessly.

5 years agoimpcontextsimple: Drop ifdef'ed platform dependencies
Matthias Clasen [Tue, 7 Apr 2020 18:54:04 +0000 (14:54 -0400)]
impcontextsimple: Drop ifdef'ed platform dependencies

The proper way to do this would be to adapt the tables
to have the right data for the platform. Since 4.0 is
a new start in many ways, lets clean this up.

5 years agoMerge branch 'private-x11-types' into 'master'
Matthias Clasen [Tue, 7 Apr 2020 18:18:55 +0000 (18:18 +0000)]
Merge branch 'private-x11-types' into 'master'

Do not parse all GDK-X11 source files

See merge request GNOME/gtk!1646

5 years agoRename gdkx11keys.h
Emmanuele Bassi [Tue, 7 Apr 2020 17:12:58 +0000 (18:12 +0100)]
Rename gdkx11keys.h

The header is now private, so it should follow the same naming scheme
for private GDK-X11 headers.

5 years agoHide GdkX11Keymap's GType function
Emmanuele Bassi [Tue, 7 Apr 2020 17:10:01 +0000 (18:10 +0100)]
Hide GdkX11Keymap's GType function

It's not a public object.

5 years agoDo not parse all GDK-X11 source files
Emmanuele Bassi [Tue, 7 Apr 2020 15:46:12 +0000 (16:46 +0100)]
Do not parse all GDK-X11 source files

We don't need all of them, only the ones that contain public API. This
allows us to reduce the chance of a stray symbol getting incorrectly
added to the introspection data.

6 years agoMerge branch 'attribute-docs' into 'master'
Matthias Clasen [Tue, 7 Apr 2020 04:15:33 +0000 (04:15 +0000)]
Merge branch 'attribute-docs' into 'master'

entry: Document buildable support

See merge request GNOME/gtk!1643

6 years agoentry: Document buildable support
Matthias Clasen [Tue, 7 Apr 2020 03:29:47 +0000 (23:29 -0400)]
entry: Document buildable support

6 years agoentry: Add <attributes> support
Matthias Clasen [Tue, 7 Apr 2020 02:13:10 +0000 (22:13 -0400)]
entry: Add <attributes> support

Make entries support the same <attributes> syntax
as labels.

Closes: #1335
6 years agoMove label attribute parser code
Matthias Clasen [Tue, 7 Apr 2020 01:46:12 +0000 (21:46 -0400)]
Move label attribute parser code

We want to reuse the parser for <attributes> in several
widgets, so move it to a shared place.

6 years agoMerge branch 'cross-postinstall' into 'master'
Matthias Clasen [Mon, 6 Apr 2020 23:59:33 +0000 (23:59 +0000)]
Merge branch 'cross-postinstall' into 'master'

meson: Don't execute post-install.py if cross compiling

See merge request GNOME/gtk!1636

6 years agoMerge branch 'fix-event-match' into 'master'
Matthias Clasen [Mon, 6 Apr 2020 23:44:32 +0000 (23:44 +0000)]
Merge branch 'fix-event-match' into 'master'

shortcuttrigger: Don't trigger on key releases

See merge request GNOME/gtk!1642

6 years agoMerge branch 'wip/chergert/fix-shortcut-param-order' into 'master'
Matthias Clasen [Mon, 6 Apr 2020 23:30:26 +0000 (23:30 +0000)]
Merge branch 'wip/chergert/fix-shortcut-param-order' into 'master'

widget: fix parameter ordering to match implementation

Closes #2586

See merge request GNOME/gtk!1641

6 years agoshortcuttrigger: Don't trigger on key releases
Matthias Clasen [Mon, 6 Apr 2020 23:16:41 +0000 (19:16 -0400)]
shortcuttrigger: Don't trigger on key releases

This broke when the event type check in gdk_key_event_matches
was removed and replaced by a precondition that accepts both
key press and release events.

Add the check in gtk_keyval_trigger_trigger instead.

6 years agowidget: fix parameter ordering to match implementation
Christian Hergert [Mon, 6 Apr 2020 22:39:44 +0000 (15:39 -0700)]
widget: fix parameter ordering to match implementation

Fixes https://gitlab.gnome.org/GNOME/gtk/issues/2586

6 years agoReplace most uses of <Primary> with <Control>
Matthias Clasen [Mon, 6 Apr 2020 21:05:52 +0000 (17:05 -0400)]
Replace most uses of <Primary> with <Control>

The only place where we are still using <Primary> is
in tests, to ensure we keep parsing it. Otherwise,
<Control> is now the preferred syntax.

6 years agoMerge branch 'keymap-rework-2' into 'master'
Matthias Clasen [Mon, 6 Apr 2020 20:56:06 +0000 (20:56 +0000)]
Merge branch 'keymap-rework-2' into 'master'

Keymap rework 2

See merge request GNOME/gtk!1635

6 years agoreftests: Comment out a test that fails only in ci
Matthias Clasen [Mon, 6 Apr 2020 19:15:21 +0000 (15:15 -0400)]
reftests: Comment out a test that fails only in ci

Fixing such only-in-ci failures is just too hard,
unfortunately.

6 years agoUpdate migration guide
Matthias Clasen [Mon, 6 Apr 2020 17:48:57 +0000 (13:48 -0400)]
Update migration guide

Rewrite the sections about keymaps and menus, and add
hints about modifiers.

6 years agoaccelgroup: Small documentation updates
Matthias Clasen [Mon, 6 Apr 2020 05:48:37 +0000 (01:48 -0400)]
accelgroup: Small documentation updates

Mention GtkShortcutTrigger, and remove references
to <Release>.

6 years agoReshuffle keymap docs
Matthias Clasen [Mon, 6 Apr 2020 05:39:17 +0000 (01:39 -0400)]
Reshuffle keymap docs

Since GdkKeymap api is on longer public, move relevant
documentation to the long description.

6 years agoDrop gtk_accelerator_set_default_mod_mask
Matthias Clasen [Mon, 6 Apr 2020 01:43:57 +0000 (21:43 -0400)]
Drop gtk_accelerator_set_default_mod_mask

Our new approach to modifiers works with a fixed set,
there is really no need to customize the modifier
masks if the backends are all supposed to deliver
the same modifiers.

6 years agogdk: Remove gdk_keymap_get_modifier_mask
Matthias Clasen [Mon, 6 Apr 2020 00:41:26 +0000 (20:41 -0400)]
gdk: Remove gdk_keymap_get_modifier_mask

This function is no longer public and no longer used.

6 years agoRemove uses of modifier intents in gdkevents.c
Matthias Clasen [Mon, 6 Apr 2020 00:39:04 +0000 (20:39 -0400)]
Remove uses of modifier intents in gdkevents.c

This removes the use of the context menu and shift group
intents in gdkevents.c. If it turns out to be important,
we need to introduce vfuncs for gdk_event_triggers_context_menu
and gdk_event_matches.

6 years agodisplay: Remove gdk_display_get_modifier_mask
Matthias Clasen [Mon, 6 Apr 2020 00:37:32 +0000 (20:37 -0400)]
display: Remove gdk_display_get_modifier_mask

This is not used anymore.

6 years agogtk: Drop gtk_widget_get_modifier_mask
Matthias Clasen [Mon, 6 Apr 2020 00:35:41 +0000 (20:35 -0400)]
gtk: Drop gtk_widget_get_modifier_mask

This is not used anymore.

6 years agogtk: Stop using modifier intents
Matthias Clasen [Sun, 5 Apr 2020 23:52:25 +0000 (19:52 -0400)]
gtk: Stop using modifier intents

Reviewing the existing settings, the only backend with
some differences in the modifier intent settings is OS X,
and we would rather have that implemented by interpreting
the existing modifiers in the appropriate way.

                X11      Wayland  Win32    OS X

primary         ctrl     ctrl     ctrl     mod2
mnemonic        alt      alt      alt      alt
context menu    -        -        -        ctrl
extend sel      shift    shift    shift    shift
modify sel      ctrl     ctrl     ctrl     mod2
no text         alt|ctrl alt|ctrl alt|ctrl mod2|ctrl
shift group     varies   -        -        alt

GTK now uses the following modifiers:

primary         ctrl
mnemonic        alt
extend sel      shift
modify sel      ctrl
no text         alt|ctrl

The context menu and shift group intents were not used
in GTK at all.

Update tests to no longer expect <Primary> to roundtrip
through the accelerator parsing and formatting code.

6 years agokeymap: Remove virtual modifier mapping functions
Matthias Clasen [Sun, 5 Apr 2020 23:33:02 +0000 (19:33 -0400)]
keymap: Remove virtual modifier mapping functions

These are not used anymore.

Drop the vfuncs and their implementations in the
broadway, x11, wayland and win32 backends as well.

6 years agogdk: Make GdkKeymap a private api
Matthias Clasen [Sun, 5 Apr 2020 15:29:12 +0000 (11:29 -0400)]
gdk: Make GdkKeymap a private api

We have replacement apis in GdkDevice and GdkDisplay.

6 years agoMerge branch 'misc-meson-fixes' into 'master'
Matthias Clasen [Mon, 6 Apr 2020 20:22:01 +0000 (20:22 +0000)]
Merge branch 'misc-meson-fixes' into 'master'

Reduce useless relinking on configure and fix check for buildtype arguments

See merge request GNOME/gtk!1614

6 years agoUpdate Dutch translation
Justin van Steijn [Mon, 6 Apr 2020 19:40:22 +0000 (19:40 +0000)]
Update Dutch translation

6 years agoimcontextsimple: Disable some win32-only code
Matthias Clasen [Mon, 6 Apr 2020 19:32:27 +0000 (15:32 -0400)]
imcontextsimple: Disable some win32-only code

This code needs to be redone differently, since keymaps are no
longer going to be exposed. There should really not be this much
ifdef-ed backend-specific code here anyway. Or any, really.

6 years agogdk: Clean up GdkModifierType
Matthias Clasen [Sun, 5 Apr 2020 14:24:07 +0000 (10:24 -0400)]
gdk: Clean up GdkModifierType

Remove MOD2..MOD5. Backends are expected to just set
the named modifiers.

6 years agogdk: Redo key events
Matthias Clasen [Sun, 5 Apr 2020 18:40:55 +0000 (14:40 -0400)]
gdk: Redo key events

Add all of the keyboard translation results in the key event,
so we can translate the keyboard state at the time the event
is created, and avoid doing state translation at match time.

We actually need to carry two sets of translation results,
since we ignore CapsLock when matching accelerators, in
gdk_event_matches().

At the same time, drop the scancode field - it is only ever
set on win32, and is basically unused in GTK.

Update all callers.

6 years agogtk: Remove handling of virtual modifiers
Matthias Clasen [Sun, 5 Apr 2020 14:25:33 +0000 (10:25 -0400)]
gtk: Remove handling of virtual modifiers

These are going away. We expect to just have
named modifiers in modifier masks now, so we
longer juggle 'real' and 'virtual' modifiers.

6 years agoevents: Stop doing elaborate virtual modifier handling
Matthias Clasen [Sun, 5 Apr 2020 14:23:18 +0000 (10:23 -0400)]
events: Stop doing elaborate virtual modifier handling

These are going away in the GdkModifierType cleanup.
Just compare the modifiers we got.

6 years agobroadway: Stop using MOD2..MOD5
Matthias Clasen [Sun, 5 Apr 2020 14:08:01 +0000 (10:08 -0400)]
broadway: Stop using MOD2..MOD5

These are going away in the GdkModifierType cleanup.

6 years agowin32: Stop using MODx modifiers
Matthias Clasen [Mon, 6 Apr 2020 19:13:00 +0000 (15:13 -0400)]
win32: Stop using MODx modifiers

The win32 backend is using GDK_MOD2_MASK for AltGr,
so define GDK_MOD2_MASK locally to keep this working,
but remove any mention of GDK_MOD3_MASK,...,GDK_MOD5_MASK.

6 years agoUpdate Ukrainian translation
Yuri Chornoivan [Mon, 6 Apr 2020 15:46:52 +0000 (15:46 +0000)]
Update Ukrainian translation

6 years agoUpdate Ukrainian translation
Yuri Chornoivan [Mon, 6 Apr 2020 14:06:17 +0000 (14:06 +0000)]
Update Ukrainian translation

6 years agoMerge branch 'fno-common' into 'master'
Matthias Clasen [Mon, 6 Apr 2020 12:47:55 +0000 (12:47 +0000)]
Merge branch 'fno-common' into 'master'

Add a missing extern, to fix building with -fno-common

See merge request GNOME/gtk!1631

6 years agowayland: Stop setting MOD2..MOD5
Matthias Clasen [Sun, 5 Apr 2020 14:06:51 +0000 (10:06 -0400)]
wayland: Stop setting MOD2..MOD5

These are going away in the GdkModifierType cleanup.

6 years agogdk: Remove reserved bit from GdkModifierType
Matthias Clasen [Sun, 5 Apr 2020 14:04:47 +0000 (10:04 -0400)]
gdk: Remove reserved bit from GdkModifierType

This really has no purpose and obscures the header.

6 years agogtk: Stop using GDK_MODx_MASK
Matthias Clasen [Sun, 5 Apr 2020 13:53:02 +0000 (09:53 -0400)]
gtk: Stop using GDK_MODx_MASK

These are never used in practice, and we never want to
see them in the UI, so stop supporting them. This is
in preparation for cleaning up GdkModifierType.

6 years agoRename GDK_MOD1_MASK to GDK_ALT_MASK
Matthias Clasen [Sun, 5 Apr 2020 13:39:03 +0000 (09:39 -0400)]
Rename GDK_MOD1_MASK to GDK_ALT_MASK

We've hardcoded Mod1 = Alt for a long time, there is
no need to keep the confusing naming around anymore.

6 years agotests: Stop using gtk_accelerator_set_default_mod_mask
Matthias Clasen [Mon, 6 Apr 2020 01:41:10 +0000 (21:41 -0400)]
tests: Stop using gtk_accelerator_set_default_mod_mask

This is not doing anything useful here.

6 years agotestsuite: Stop using keymap apis
Matthias Clasen [Sun, 5 Apr 2020 15:28:52 +0000 (11:28 -0400)]
testsuite: Stop using keymap apis

6 years agogtk: Use display apis for keymap mapping
Matthias Clasen [Sun, 5 Apr 2020 15:03:28 +0000 (11:03 -0400)]
gtk: Use display apis for keymap mapping

This removes the last uses of GdkKeymap from GTK.

6 years agogtk: Stop using keymap apis
Matthias Clasen [Sun, 5 Apr 2020 05:04:20 +0000 (01:04 -0400)]
gtk: Stop using keymap apis

Stop using most keymap apis in GTK. Only a few calls
related to virtual modifiers are left.

6 years agox11: Notify new device properties
Matthias Clasen [Sun, 5 Apr 2020 04:48:02 +0000 (00:48 -0400)]
x11: Notify new device properties

6 years agowayland: Notify new device properties
Matthias Clasen [Sun, 5 Apr 2020 04:37:51 +0000 (00:37 -0400)]
wayland: Notify new device properties

6 years agoMove keymap mapping functions to GdkDisplay
Matthias Clasen [Sun, 5 Apr 2020 15:02:50 +0000 (11:02 -0400)]
Move keymap mapping functions to GdkDisplay

We want to stop exposing GdkKeymap, so this
functionality needs a new home.

6 years agoMove GdkKeymapKey to gdktypes.h
Matthias Clasen [Sun, 5 Apr 2020 15:02:21 +0000 (11:02 -0400)]
Move GdkKeymapKey to gdktypes.h

We are going to use this type in a different header.

6 years agogdk: Move modifier mask api to GdkDisplay
Matthias Clasen [Sun, 5 Apr 2020 04:37:23 +0000 (00:37 -0400)]
gdk: Move modifier mask api to GdkDisplay

GdkKeymap is on the way out.

6 years agogdk: Add keymap properties to GdkDevice
Matthias Clasen [Sun, 5 Apr 2020 04:36:42 +0000 (00:36 -0400)]
gdk: Add keymap properties to GdkDevice

GdkKeymap is on the way out.

6 years agopasswordentry: Show caps lock warning more
Matthias Clasen [Sun, 5 Apr 2020 04:30:23 +0000 (00:30 -0400)]
passwordentry: Show caps lock warning more

Show the caps lock warning regardless of whether we
have the peek icon or not.

6 years agoDrop some no longer used code
Matthias Clasen [Sun, 5 Apr 2020 00:04:42 +0000 (20:04 -0400)]
Drop some no longer used code

6 years agocell renderer accel: Use gdk_event_get_match
Matthias Clasen [Sun, 5 Apr 2020 00:03:44 +0000 (20:03 -0400)]
cell renderer accel: Use gdk_event_get_match

6 years agoAdd gdk_event_get_match
Matthias Clasen [Sun, 5 Apr 2020 00:02:20 +0000 (20:02 -0400)]
Add gdk_event_get_match

This is a counterpart to gdk_event_matches() that can
be used to obtain a shortcut matching an event.

6 years agoAdd gdk_event_matches
Matthias Clasen [Sat, 4 Apr 2020 21:51:32 +0000 (17:51 -0400)]
Add gdk_event_matches

Move the elaborate key event matching code from
GtkShortcutTrigger to GdkEvent, which greatly reduces
the amount of keymap api use outside of GDK.

6 years agomeson: Don't execute post-install.py if cross compiling
Martin Storsjö [Sun, 5 Apr 2020 19:57:22 +0000 (22:57 +0300)]
meson: Don't execute post-install.py if cross compiling

6 years agoAdd a missing extern, to fix building with -fno-common
Martin Storsjö [Sat, 4 Apr 2020 21:43:16 +0000 (00:43 +0300)]
Add a missing extern, to fix building with -fno-common

With C compilers defaulting to -fcommon, this isn't an issue, but
upcoming compilers (GCC 10 and Clang 11) will default to -fno-common,
ending up with duplicate definitions of these variables.

6 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 4 Apr 2020 21:09:12 +0000 (21:09 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!1630

6 years agogtk-demo: Fix a crash
Matthias Clasen [Sat, 4 Apr 2020 19:35:18 +0000 (15:35 -0400)]
gtk-demo: Fix a crash

Using the assistant demo repeatedly was crashing.

6 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 4 Apr 2020 16:31:43 +0000 (16:31 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

shortcuts: documentation fixes

See merge request GNOME/gtk!1628

6 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 4 Apr 2020 16:31:43 +0000 (16:31 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

shortcuts: documentation fixes

See merge request GNOME/gtk!1628

6 years agoshortcuts: documentation fixes
Matthias Clasen [Sat, 4 Apr 2020 15:38:47 +0000 (11:38 -0400)]
shortcuts: documentation fixes

Update symbol lists, and add examples for parsing triggers
and actions.

6 years agoUpdate POTFILES.skip
Piotr Drąg [Sat, 4 Apr 2020 09:56:04 +0000 (11:56 +0200)]
Update POTFILES.skip

6 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Sat, 4 Apr 2020 05:00:22 +0000 (05:00 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!1626

6 years agocolorbutton: Don't add a customize menu
Matthias Clasen [Fri, 3 Apr 2020 21:42:22 +0000 (17:42 -0400)]
colorbutton: Don't add a customize menu

The color swatch in the button does not need a
context menu. Turn it off.

6 years agocolorbutton: Fix focus
Matthias Clasen [Fri, 3 Apr 2020 21:39:49 +0000 (17:39 -0400)]
colorbutton: Fix focus

The colorbutton contains a button which contains a colorswatch.
We want the focus to go straight to the button, nowhere else,
so mark the swatch as !can-focus.

Adapt tests to match.

6 years agodemos: Remove can-focus from ui files
Matthias Clasen [Mon, 30 Mar 2020 00:35:17 +0000 (20:35 -0400)]
demos: Remove can-focus from ui files

6 years agoMerge branch 'scrollbar-a11y' into 'master'
Matthias Clasen [Sat, 4 Apr 2020 04:03:40 +0000 (04:03 +0000)]
Merge branch 'scrollbar-a11y' into 'master'

Add GtkScrollbarAccessible

See merge request GNOME/gtk!1623

6 years agoscrollbar: Be more defensive
Matthias Clasen [Sat, 4 Apr 2020 03:31:45 +0000 (23:31 -0400)]
scrollbar: Be more defensive

Somehow the scrollbar accessible manages to call
gtk_scrollbar_get_adjustment when priv->range is NULL.
Survive taht.

6 years agoMerge branch 'shortcut-action-parse' into 'master'
Matthias Clasen [Sat, 4 Apr 2020 03:12:10 +0000 (03:12 +0000)]
Merge branch 'shortcut-action-parse' into 'master'

Shortcut action parse

See merge request GNOME/gtk!1625

6 years agotestsuite: Add tests for parsing shortcut actions
Matthias Clasen [Sat, 4 Apr 2020 02:42:00 +0000 (22:42 -0400)]
testsuite: Add tests for parsing shortcut actions